package com.mingqi.enetconnected.view.Dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.TextView;

import com.mingqi.enetconnected.R;

import butterknife.Unbinder;

/**
 * Created by li on 2018/8/22.
 * WeChat 18571658038
 * author LiWei
 */

public class LoginDialog extends Dialog {

    private TextView mTvHint;
    private TextView mTvConfirm;

    public LoginDialog(@NonNull Context context) {

        super(context, R.style.MyBaseDialog);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_login_hint);

        mTvHint = findViewById(R.id.tv_hint);
        mTvConfirm = findViewById(R.id.tv_confirm);

        mTvConfirm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                dismiss();
            }
        });
    }

    public void setHintMessage(String hintMessage){

        mTvHint.setText(hintMessage);
    }

}
